-- Decompiled with the Synapse X Luau decompiler.

local ClientOHOH = _G.ClientOHOH;
local CallBackManager = ClientOHOH.load.CallBackManager();
local M = ClientOHOH.class.new(script, ClientOHOH.files.CharacterObject());

local CommonOHOH = _G.CommonOHOH;

function M.new(self, model)
	return M(self, model);
end;

function M.ctor(self, model, player)
	M.super.ctor(self, model);
	self.player = player;


	self:AddComponent(CommonOHOH.load.CharacterRun())

    self:AddComponent(_G.CommonOHOH.load.Common_UsingWeaponCtrl()); 


    self:InitPrivateComponent()

end;

function M.InitPrivateComponent(self)
    self.PrivateComponent={}
    for _,component in pairs(script.Component:GetChildren()) do
        self.PrivateComponent[component.Name] =self:AddComponent(require(component))
    end
end

function M.GetPrivateComponent(self,id)
    return  self.PrivateComponent[id]
end


function M.dtor(self)

	M.super.dtor(self);

end;
function M.OnDead(self)
	-- print("------------>客户端死亡---")
	-- task.wait(1)
	-- self.player.main_inst:LoadCharacter()
end;

function M.SetWalkSpeed(self,speed)
	self:GetHumanoid().WalkSpeed = speed
end;

return M;
